package cn.sc.summer.mybatis.mapper;

import cn.sc.summer.mybatis.base.SuperMapper;
import cn.sc.summer.mybatis.po.SysApi;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 接口：api接口类mapper
 *
 * @author a-xin
 * @date 2023/9/23 16:21
 */
@Mapper
public interface SysApiMapper extends SuperMapper<SysApi> {
    //@InterceptorIgnore(tenantLine = "1") 忽略拦截器注释

    /**
     * 删除api锁绑定的所有路由
     *
     * @param apiIds api接口ID
     * @return 删除数量
     */
    Integer deleteApiRoute(@Param("apiIds") List<String> apiIds);

}
